import request from '@/utils/request'

// 查询学期名称列表
export function listYearname(query) {
  return request({
    url: '/gxs/yearname/list',
    method: 'get',
    params: query
  })
}

// 查询学期名称详细
export function getYearname(gxsYearid) {
  return request({
    url: '/gxs/yearname/' + gxsYearid,
    method: 'get'
  })
}

// 新增学期名称
export function addYearname(data) {
  return request({
    url: '/gxs/yearname',
    method: 'post',
    data: data
  })
}

// 修改学期名称
export function updateYearname(data) {
  return request({
    url: '/gxs/yearname',
    method: 'put',
    data: data
  })
}

// 删除学期名称
export function delYearname(gxsYearid) {
  return request({
    url: '/gxs/yearname/' + gxsYearid,
    method: 'delete'
  })
}
